<div class="header">
            
            <h1 class="page-title">&nbsp;&nbsp;Change Engineer</h1>
        </div>
        
                <ul class="breadcrumb">
         
            
        </ul>
<br>
<br>
<br>
<br>
<div class="span4"> </div>
<div class="span6">
<form method="post" action="<?php echo site_url('/admin/expenses/engineer_change')?>">
<label ><b>Case No.</b></label>
<input type="text" readonly="readonly" class="span3" name="case_no"value="<?php echo $case_detail->case_no;?>"/>
<input type="hidden" name="case_id" id="case_id" value="<?php echo $case_detail->id;?>"/>
<label class="col-lg-2 control-label"><b>Assigned Date.</b></label>

            <input data-date-format="yyyy/mm/dd"  type="text" class="date1" id="datepicker1"name="assign_date" value="<?php echo $case_detail->date;?>"/>
            <span class="add-on">
                <i class="icon-calendar"> </i>
            </span>
  

    
<label for="inputEmail" class="col-lg-2 control-label"><b>Select Available Engineer</b></label>
<?php 
	 	$bl[''] = "Select Engineer";
	   		foreach($engineer as $engineers){
           
				$bl[$engineers->id] = $engineers->username;
			}
			echo form_dropdown('id_engineer', $bl, $case_detail->engineer_id, 'class="chzn-select span12" data-placeholder="Choose a Supplier" style="width:220px;" onchange="uncheck_checkbox()"');  ?>
		<br>
			<input type="checkbox" name="admin" id="admin" <?php if(!empty($admin)){?> checked="true" <?php } else { }?>value="1"/> <b>Assigned to Admin</b>
			
<br>
<br>
<p align="center">
<input type="submit" name="submit" value="Change" class="btn btn-danger"/>
</form>
</p>
</div>
</div>
</div>
<script>
function uncheck_checkbox()
{

document.getElementById("admin").checked = false;

}



</script>
